import { request } from '@vipl520/utils'

const path = '/gs_gold/admin.test/'

export function updateTestData(pid, questionsData = [], resultsData = []) {
  return request(
    {
      url: path + 'updateTestData',
      method: 'post',
      data: { pid, questionsData, resultsData }
    },
    {
      code_success_show: true,
      code_error_show: true
    }
  )
}

// 小程序端接口
export function getTestList(page, size, recommend = 0) {
  return request({
    url: '/gs_gold/app.test/getTestList',
    method: 'get',
    params: { page, size, recommend }
  })
}
